<template>
  <div class="courses_box">
    <div class="courses_header">
      <div class="courses_header_line"></div>
      <span class="courses_header_name">面授课程</span>
    </div>
    <div class="courses_content" v-for="item in coursesForm">
      <div class="courses_content_img">
        <img :src="item.img" width="100%" height="100%">
      </div>
      <div class="courses_content_content">
        <div class="courses_content_top">
          <span class="courses_content_title">{{item.title}}</span>
          <span class="courses_content_subtitle">{{item.subtitle}}</span>
        </div>
        <div class="courses_content_bottom">
          <div class="courses_content_label">
            <span class="courses_content_labelTitle">{{item.label}}</span>
          </div>
          <span class="courses_content_price">{{item.price}}</span>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    data(){
      return{
        coursesForm:[
          {
            img:'http://cdn.rzico.com/img/292f7e12c273f0f51f7aa6d81040dcaf@2x.png',
            title:'小学必背75首古诗词（全）大范德萨范德萨发生大事撒大发生的发生',
            subtitle:'全国小学生必背经典内容发达撒发生的发生的范德萨发发呆萨芬撒的发生范德萨范德萨范德萨地方三大范德萨发顺丰',
            label:'24课时',
            price:'¥99.0'
          },
          {
            img:'http://cdn.rzico.com/img/292f7e12c273f0f51f7aa6d81040dcaf@2x.png',
            title:'小学必背75首古诗词（全）',
            subtitle:'全国小学生必背经典内容',
            label:'小班教学',
            price:'¥99.0'
          },
          {
            img:'http://cdn.rzico.com/img/292f7e12c273f0f51f7aa6d81040dcaf@2x.png',
            title:'小学必背75首古诗词（全）',
            subtitle:'全国小学生必背经典内容',
            label:'小班教学',
            price:'¥99.0'
          },
          {
            img:'http://cdn.rzico.com/img/292f7e12c273f0f51f7aa6d81040dcaf@2x.png',
            title:'小学必背75首古诗词（全）',
            subtitle:'全国小学生必背经典内容',
            label:'小班教学',
            price:'¥99.0'
          }
        ]
      }
    }
  }
</script>

<style scoped>
  .courses_box{
    width: 100%;
    padding-top: 20px;
    padding-bottom: 5px;
    padding-left: 15px;
    padding-right: 15px;
    border-top: 5px solid rgba(242,242,242,1);;
  }
  .courses_header{
    display: flex;
    flex-direction: row;
    align-items: center;
    padding-bottom: 5px;
  }
  .courses_header_line{
    width:5px;
    height:18px;
    background:rgba(64,158,255,1);
    opacity:1;
  }
  .courses_header_name{
    font-size:16px;
    font-weight:500;
    line-height:22px;
    color:rgba(43,43,43,1);
    opacity:1;
    margin-left: 4px;
  }
  .courses_content{
    display: flex;
    padding-top: 15px;
    padding-bottom: 15px;
    border-bottom:1px solid rgba(242,242,242,1);
  }
  .courses_content:last-child{
    display: flex;
    padding-top: 15px;
    padding-bottom: 15px;
    border-bottom: none;
  }
  .courses_content_img{
    width: 135px;
    height: 100px;
  }
  .courses_content_content{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-left: 15px;
    width: 195px;
  }
  .courses_content_top{
    display: flex;
    flex-direction: column;
  }
  .courses_content_title{
    font-size:15px;
    font-weight:500;
    line-height:21px;
    color:rgba(43,43,43,1);
    opacity:1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .courses_content_subtitle{
    font-size:14px;
    font-weight:400;
    line-height:20px;
    color:rgba(112,112,112,1);
    opacity:1;
    margin-top: 7px;
    display: -webkit-box;
    -webkit-line-clamp:2;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
  }
  .courses_content_bottom{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .courses_content_price{
    font-size:18px;
    font-weight:500;
    line-height:25px;
    color:rgba(255,112,11,1);
    opacity:1;
  }
  .courses_content_label{
    height:22px;
    background:rgba(255,255,255,1);
    border:1px solid rgba(255,112,11,1);
    opacity:1;
    border-radius:11px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 8px;
    padding-right: 8px;
  }
  .courses_content_labelTitle{
    font-size:12px;
    font-weight:400;
    line-height:15px;
    color:rgba(255,112,11,1);
    opacity:1;
  }
</style>
